package com.sofun.ai.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.TokenStream;
import dev.langchain4j.service.UserMessage;

/**
 * 带memory的助手
 * */
public interface AiAssistant {

    String chat(@MemoryId int memoryId, @UserMessage String userMessage);
    // 流式响应
    TokenStream stream(@MemoryId int memoryId, @UserMessage String userMessage);
}
